<extend name="Base/common"/>

<block name="style">
    <link href="__CSS__/convert.css" rel="stylesheet" type="text/css"/>
</block>
<block name="header">
    <include file="Public/_nav"/>
</block>
<block name="body">

    <div class="alert alert-info with-icon">
        <i class="icon-info-sign"></i>

        <div class="content">欢迎使用V1到V2转换程序，此程序用于OSV1数据升级到OSV2。 <span style="color: red">升级前请先做好数据库的备份。</span></div>
    </div>

    <include file="Public/_info"/>

    <div class="message col-md-10">
        <a href="javascript:" data-role="do_convert" class="btn btn-primary">点击进行转移</a>
        <ul class="clearfix" id="default_table" style="font-size: 14px;font-weight: bold">

            <volist name="table_list" key="key" id="table">
                <php>
                    if($data[$table['name']]['is_success']){
                    $class = 'show_success_'.$data[$table['name']]['is_success'] ;
                    $info= $data[$table['name']]['info'];
                    }elseif($data[$table['name']]['is_success'] ===0){
                    $class = 'show_error';
                    $info= $data[$table['name']]['info'];
                    }else{
                    $class = '';
                    $info= '等待转移。';
                    }
                </php>

                <li id="{$table.name}" class="{$class}" style="width: 60%;display: inline-block">
                    {:C("DB_PREFIX")}{$table.name}

                    <span class="pull-right">{$info}</span>
                </li>
                <div class="operation" style="display: inline-block">
                    <!-- <if condition="empty($data[$table['name']]['is_success'])"> </if>-->
                    <a class="btn-xs btn" data-role="convert" data-table="{$table.name}"
                       data-single="1">点击单个转移</a>
                    <a class="btn-xs btn" data-role="convert" data-table="{$table.name}" data-single="0">点击转移以下全部</a>

                </div>
            </volist>
        </ul>

        <div id="finish" style="width: 50%;font-size: 18px;"><span class="pull-right"></span></div>
        <a class="btn btn-primary" href="{:U('Convert/addon/convert')}">下一步</a>

    </div>


</block>
<block name="script">

    <script src="__JS__/convert.js"></script>
</block>

